<?php
function smarty_function_current_position($params, &$smarty)
{
	include($_ENV['webpath']."conn.php");
	include_once($_ENV['webpath']."model/article.php");
	
	$str=get_position_str($params['catalog_id']);
	if (empty($params['assign'])) {
		return $str;
	} else {
		$smarty->assign($params['assign'],$str);
	}
	mysql_close($conn);
}
?>
